<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    MaintainScrollPositionOnPostback="true" CodeFile="ViewCICustomerCallSearch.aspx.cs"
    Inherits="SiteUser_CarInsurance_ViewCICustomerCallSearch" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" type="text/css" href="../OLD/css/styles2.css" title="Contemporary" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
<div style="float:left"><h1>
        <asp:Label runat="server" Text="" ID="lblCallTypeDesc"></asp:Label><asp:Label runat="server"
            Text="<%$Resources:General,SearchCustomer%>" ID="lblCallSessionName"></asp:Label></h1></div>
<div style="float:right">&nbsp;
                        <asp:Button ID="btnNewLead" runat="server" Text="<%$Resources:ResultPage,SmsgNewCustomer %>"
                            OnClick="btnNewLead_Click" CssClass="blueB ml10" />
                        &nbsp;</div>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="-1" ID="lblCallType" Visible="false"></asp:Label>
    <asp:Button runat="server" ID="btnReset" Text="Reset/Reload" Visible="false" OnClick="btnReset_Click"
        Width="121px" Height="30px" Font-Bold="true" CausesValidation="false" OnClientClick="return ResetConfirm();" />
    <asp:Label runat="server" Text="0" ID="lblAgentLeadID" Visible="false"></asp:Label>
    <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" />
    <div class="right_action">
        <asp:HyperLink runat="server" Visible="false" ID="lnkNewCarUsage" NavigateUrl="#"
            Text="New"></asp:HyperLink>
    </div>
    <p><asp:Label runat="server" ID="lblMessage" CssClass="red" /></p>
    <div class="toggle" runat="server" id="divCallMeCustomerList" visible="false">
        <div class="title opened" id="opened1">
            <img src="../images/icons/dark/user.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General,CallMeCustomerList%>" ID="Label41" /></h6>
        </div>
        <asp:GridView ID="gvCallMeCustomerList" runat="server" AutoGenerateColumns="False"
            CellPadding="4" AllowSorting="false" Width="100%" GridLines="None" DataKeyNames="CallMeId,RefCEUserID"
            CssClass="sTable" EmptyDataText="No item found." OnSelectedIndexChanged="gvCallMeCustomerList_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="CallMeId" HeaderText="<%$Resources:General,CallMeId%>"
                    HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red" SortExpression="CallMeId"
                    InsertVisible="False" ReadOnly="True" Visible="true">
                    <ItemStyle Font-Bold="true" BackColor="ActiveBorder" Width="120px" HorizontalAlign="Left">
                    </ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="500px" DataField="FULLNAME" HeaderText="<%$Resources:CarInsurance,FullName%>"
                    SortExpression="FULLNAME">
                    <ItemStyle Width="500px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                
                <asp:BoundField ItemStyle-Width="100px" DataField="ModifiedDate" HeaderText="<%$Resources:CarInsurance,QuoteDateTime%>"
                    DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                    <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="<%$Resources:General,Select%>"
                    ItemStyle-Width="120px" ControlStyle-CssClass="blueB ml10" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle BackColor="ActiveBorder" Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle CssClass="grideven" Height="30px" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsCallMeCustomerList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
            SelectCommand="sprocCXCRMSearchCallMeCustomer" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtSearchTextHidden" Name="SearchKey" PropertyName="Text"
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" id="divCallMeCallHistory" runat="server" visible="false">
        <div class="title opened" id="opened2">
            <img src="../images/icons/dark/call.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General, CallMeCallHistory %>" ID="lblCallMeCallHistoryTitle" /></h6>
        </div>
        <div>
            <asp:GridView ID="gvCallMeCallHistory" runat="server" AutoGenerateColumns="False"
                CellPadding="4" DataSourceID="sqlDsCallMeCallHistory" AllowSorting="false" Width="100%"
                GridLines="None" CssClass="sTable" EmptyDataText="No call history so far." OnRowDataBound="gvCallMeCallHistory_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="CEID" HeaderText="AgentID" SortExpression="CEID" InsertVisible="False"
                        ReadOnly="True" Visible="false">
                        <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="180px" DataField="FULLNAME" HeaderText="<%$Resources:General, AgentName %>"
                        SortExpression="FULLNAME">
                        <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="80px" DataField="CarID" HeaderText="<%$Resources:CarInsurance, CarID%>"
                        SortExpression="CarID" HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red">
                        <ItemStyle Width="80px" Font-Bold="true" BackColor="ActiveBorder" ForeColor="Red"
                            HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="100px" DataField="CallTypeID" HeaderText="<%$Resources:General, CallType %>"
                        SortExpression="CallTypeID" Visible="false">
                        <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallTypeDesc"
                        HeaderText="CallTypeDesc" SortExpression="CallTypeDesc">
                        <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallFinish"
                        HeaderText="<%$Resources:General, FinishCall %>" SortExpression="CallFinish">
                        <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="180px" DataField="CallStatusDesc" HeaderText="<%$Resources:General, Status %>"
                        SortExpression="CallStatusDesc" Visible="true">
                        <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="380px" HtmlEncode="false" DataField="Remark"
                        HeaderText="<%$Resources:General, Comments%>" ReadOnly="True" SortExpression="Remark"
                        ItemStyle-HorizontalAlign="Left">
                        <ItemStyle Width="380px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField ItemStyle-Width="80px" DataField="ModifiedDate" HeaderText="<%$Resources:General, DateTime%>"
                        DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                        <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                </Columns>
                <FooterStyle />
                <PagerStyle />
                <SelectedRowStyle />
                <HeaderStyle />
                <EditRowStyle />
                <AlternatingRowStyle />
                <RowStyle CssClass="grideven" Height="30px" />
            </asp:GridView>
            <asp:SqlDataSource ID="sqlDsCallMeCallHistory" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                SelectCommand="sprocCXCRMGetCallMeCallStatusLogHistory" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:ControlParameter ControlID="lblAgentLeadId" Name="AgentLeadId" PropertyName="Text"
                        Type="Int64" />
                    <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" PropertyName="Text"
                        Type="Int16" />
                </SelectParameters>
            </asp:SqlDataSource>
            <div class="clear">
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div>
        <div class="clear">
        </div>
    </div>
    <div class="num" style="margin: 5px; margin-right: 30px; float: right;">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <asp:Button runat="server" ID="btnNewCallMeCall" Visible="false" Text="<%$Resources:CarInsurance, Continue %>"
                    CssClass="blueB" OnClick="btnNewCallMeCall_Click" />
                <asp:Label runat="server" ID="lblNewCallMeCallMessage" /></ContentTemplate>
        </asp:UpdatePanel>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divCustomerList" visible="false">
        <div class="title opened" id="opened3">
            <img src="../images/icons/dark/user.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General,CustomerList%>" ID="Label4" /></h6>
        </div>
        <asp:GridView ID="gvCustomerList" runat="server" AutoGenerateColumns="False" CellPadding="4"
            AllowSorting="false" Width="100%" GridLines="None" DataKeyNames="RefCEUserID" CssClass="sTable"
             EmptyDataText="No item found." OnSelectedIndexChanged="gvCustomerList_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="RefCEUserID" HeaderText="<%$Resources:General,CustomerID%>"
                    HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red" SortExpression="CustomerID"
                    InsertVisible="False" ReadOnly="True" Visible="true">
                    <ItemStyle Font-Bold="true" BackColor="ActiveBorder" Width="120px" HorizontalAlign="Left">
                    </ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="300px" DataField="FULLNAME" HeaderText="<%$Resources:CarInsurance,FullName%>"
                    SortExpression="FULLNAME">
                    <ItemStyle Width="300px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                
                <asp:BoundField ItemStyle-Width="100px" DataField="ModifiedDate" HeaderText="<%$Resources:CarInsurance,QuoteDateTime%>"
                    DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                    <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" SelectText="<%$Resources:General,Select%>"
                    ItemStyle-Width="120px" ControlStyle-CssClass="blueB ml10" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle BackColor="ActiveBorder" Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle CssClass="grideven" Height="30px" />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divCarDetailList" visible="false">
        <div style="text-align:right"><asp:Button runat="server" ID="btnNewCar" Text="New Car" CssClass="blueB ml10" OnClick="btnNewCar_Click" /></div>
        <div class="title opened" id="opened4">
            <img src="../images/icons/dark/car.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General, CarList %>" ID="lblCarDetailListTitle" /></h6>
        </div>
        <asp:GridView ID="gvCarDetailList" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataSourceID="sqlDsCarDetailList" AllowSorting="false" Width="100%" GridLines="None"
            DataKeyNames="CarID, CECarPolicyID, RefCEUserID" CssClass="sTable" EmptyDataText="No item found."
            OnSelectedIndexChanged="gvCarDetailList_SelectedIndexChanged">
            <Columns>
                <asp:BoundField DataField="CarID" HeaderText="<%$Resources:CarInsurance, CarID %>"
                    HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red" SortExpression="CarID"
                    InsertVisible="False" ReadOnly="True" Visible="true">
                    <ItemStyle Font-Bold="true" ForeColor="Red" BackColor="ActiveBorder" Width="80px"
                        HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="CECarPolicyID" HeaderText="PolicyID" SortExpression="CECarPolicyID"
                    InsertVisible="False" ReadOnly="True" Visible="true">
                    <ItemStyle Width="50px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="MakeModelDesc" HeaderText="<%$Resources:CarInsurance,CarMakeModel%>"
                    SortExpression="MakeModelDesc">
                    <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="ManufactYear" HeaderText="<%$Resources:CarInsurance,CarModelYear%>"
                    SortExpression="ManufactYear">
                    <ItemStyle Width="60px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="InsuranceTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                    SortExpression="InsuranceTypeDesc">
                    <ItemStyle Width="30px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="CoverageCommenceDate" HeaderText="<%$Resources:CarInsurance,CoverCommencementDate%>"
                    SortExpression="CoverageCommenceDate" DataFormatString="{0:dd-MMM-yyyy}">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="NCDPercentDesc" HeaderText="<%$Resources:CarInsurance,NCB%>"
                    SortExpression="NCDPercentDesc">
                    <ItemStyle Width="40px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="SelectedPlan" HeaderText="SelectedPlan" SortExpression="SelectedPlan">
                    <ItemStyle Width="120px" Font-Bold="true" ForeColor="Red" HorizontalAlign="Left">
                    </ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="ModifiedDate" DataFormatString="{0:dd-MMM-yyyy hh:mm tt}"
                    HeaderText="<%$Resources:CarInsurance,QuoteDateTime%>" SortExpression="ModifiedDate">
                    <ItemStyle Width="60px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:CommandField ShowSelectButton="True" ButtonType="Button" ItemStyle-Width="80px"
                    SelectText="<%$Resources:General,Select%>" ControlStyle-CssClass="blueB ml10" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle BackColor="ActiveBorder" Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsCarDetailList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
            SelectCommand="sprocCXCRMGetCarDetailSearchListByCustomerID" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtCustomerID" Name="CustomerID" PropertyName="Text"
                    Type="Int64" />
                <asp:ControlParameter ControlID="txtSearchCarIDHidden" Name="CarID" PropertyName="Text"
                    Type="Int64" />
                <asp:ControlParameter ControlID="txtAgentID" Name="AgentID" PropertyName="Text" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divPromotion" visible="false">
        <div class="title opened" id="Div2">
            <img src="../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" ID="Label6" Text="Promotion" />
            </h6>
        </div>
        <asp:Literal ID="ltrPromotion" runat="server" />
        <div class="clear"></div>
    </div>
    <div>
        <asp:HyperLink ID="hplOldQuote" CssClass="wButton bluewB mr15 mt10" Visible="false"
            runat="server" Text="Update Old Quotes" />
    </div>
    <div class="toggle" runat="server" id="divCompletedQuoteDetails" visible="false">
        <div class="title opened" id="opened6">
            <img src="../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="Label10" runat="server" Text="" />Online
                <asp:Label runat="server" ID="lblApplicationFormSummaryCaption" Text="<%$Resources:General,AppFromGGOnline%>" />
            </h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <thead>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "ReferenceNo")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "FullName")%>
                    </td>
                    
                    <td>
                        <%=GetGlobalResourceObject("General", "PaymentType")%>
                    </td>
                   
                    <td>
                        <%=GetGlobalResourceObject("General", "OrderRefNo")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "PackageName")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "AnnualPremium")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("NonGG", "CTPL")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("General", "DateTime")%>
                    </td>
                    
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblCQQuoteRefNo" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQFullName" />
                    </td>
                   
                    <td>
                        <asp:Label runat="server" ID="lblCQPaymentType" />
                    </td>
                    
                    <td>
                        <asp:Label runat="server" ID="lblCQOrderRefNo" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQPackageName" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQPremiumAmount" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQCTPLStatus" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblCQDateTime" />
                    </td>
                    
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" id="divCallHistory" runat="server" visible="false">
        <div class="title opened" id="opened5">
            <img src="../images/icons/dark/call.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General, CallHistory %>" ID="lblCallHistoryTitle" /></h6>
        </div>
        <asp:GridView ID="gvCallHistory" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataSourceID="sqlDsCallHistory" AllowSorting="false" Width="100%" GridLines="None"
            CssClass="sTable" EmptyDataText="No call history so far." OnRowDataBound="gvCallHistory_RowDataBound">
            <Columns>
                <asp:BoundField DataField="CEID" HeaderText="AgentID" SortExpression="CEID" InsertVisible="False"
                    ReadOnly="True" Visible="false">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="180px" DataField="FULLNAME" HeaderText="<%$Resources:General, AgentName %>"
                    SortExpression="FULLNAME">
                    <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="80px" DataField="CarID" HeaderText="<%$Resources:CarInsurance, CarID%>"
                    SortExpression="CarID" HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="Red">
                    <ItemStyle Width="80px" Font-Bold="true" BackColor="ActiveBorder" ForeColor="Red"
                        HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="100px" DataField="CallTypeID" HeaderText="<%$Resources:General, CallType %>"
                    SortExpression="CallTypeID" Visible="false">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallTypeDesc"
                    HeaderText="CallTypeDesc" SortExpression="CallTypeDesc">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="100px" HtmlEncode="false" DataField="CallFinish"
                    HeaderText="<%$Resources:General, FinishCall %>" SortExpression="CallFinish">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="180px" DataField="CallStatusDesc" HeaderText="<%$Resources:General, Status %>"
                    SortExpression="CallStatusDesc" Visible="true">
                    <ItemStyle Width="180px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField ItemStyle-Width="380px" HtmlEncode="false" DataField="Remark"
                        HeaderText="<%$Resources:General, Comments%>" ReadOnly="True" SortExpression="Remark"
                        ItemStyle-HorizontalAlign="Left">
                        <ItemStyle Width="380px" HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundField>
                <asp:BoundField ItemStyle-Width="80px" DataField="ModifiedDate" HeaderText="<%$Resources:General, DateTime%>"
                    DataFormatString="{0:dd-MMM-yyyy hh:mm tt}" SortExpression="ModifiedDate">
                    <ItemStyle Width="80px" HorizontalAlign="Left"></ItemStyle>
                </asp:BoundField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle CssClass="grideven" Height="30px" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsCallHistory" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
            SelectCommand="sprocCXCRMGetCallStatusLogHistory" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtCustomerID" Name="CustomerID" PropertyName="Text"
                    Type="Int64" />
                <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" PropertyName="Text"
                    Type="Int16" />
            </SelectParameters>
        </asp:SqlDataSource>
        <div class="num">
            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                    <asp:Button runat="server" ID="btnNewCall" Visible="false" Text="<%$Resources:General, CallNow %>"
                        CssClass="blueB ml10" OnClick="btnNewCall_Click" />
                    <asp:Label runat="server" ID="lblNewCallMessage" /></ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divCustomerDetail" visible="false">
        <div class="title opened" id="Div1">
            <img src="../images/icons/dark/user.png" alt="" class="titleIcon" />
            <h6>
                <%=GetGlobalResourceObject("CarInsurance", "CustomerDetail")%></h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <thead>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "FullName")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "Gender")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "DOB")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "Occupation") %>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblName" />&nbsp;<asp:Label runat="server" ID="lblLastName" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblGender" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblDOB" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblOccupation" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblEmailAddress" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblMobileNo" />
                    </td>
                </tr>
                <tr>
                    <td colspan="6">
                        <asp:Label ID="Label2" runat="server" Text="" Font-Bold="true" />
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "MobileNo")%>:</b>&nbsp;
                        <asp:Label ID="lblRefMobile" runat="server" Font-Bold="true" ForeColor="Red" />&nbsp;&nbsp;
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "EmailAddress")%>:</b>&nbsp;
                        <asp:Label ID="lblRefEmail" runat="server" Font-Bold="true" ForeColor="Red" />&nbsp;&nbsp;
                        <b>Ref.
                            <%=GetGlobalResourceObject("CarInsurance", "CarID")%>:</b>&nbsp;
                        <asp:Label ID="lblRefCarID" runat="server" Font-Bold="true" ForeColor="Red" />&nbsp;&nbsp;
                        <b>
                            <%=GetGlobalResourceObject("CarInsurance", "QuoteDateTime")%>:</b>&nbsp;
                        <asp:Label ID="lblRefModifiedDateTime" runat="server" Font-Bold="true" ForeColor="Red" />
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divCarDetails" visible="false">
        <div class="title opened">
            <img src="../images/icons/dark/car.png" alt="" class="titleIcon" />
            <h6>
                <%=GetGlobalResourceObject("CarInsurance", "CarDetail")%></h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <tbody>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblRegYear" /></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CarMakeModel")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblCarMakeModel" /></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "VehicleType") %>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblVehicleType" /></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "GarageType")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label Font-Bold="true" runat="server" ID="lblGarageType" /></span>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divPolicyDetails" visible="true">
        <div class="title opened">
            <img src="../images/icons/dark/list.png" alt="" class="titleIcon" />
            <h6>
                <%=GetGlobalResourceObject("CarInsurance", "PolicyDetail")%></h6>
        </div>
        <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
            <tbody>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "InsuranceType")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblInsuranceType" /></span>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CoverCommencementDate")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label ForeColor="Red" runat="server" ID="lblCoverCommencementDate" /></span>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CurrentInsurer")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblCurrentInsurer" /></span>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "NamedDriver") %>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblDriverCount" /></span>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "AnyClaimLastYear")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblClaimInfo" /></span>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "SumInsured")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblSumInsured" /></span>
                    </td>
                    <td>
                        NCD
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblNCD" /></span>
                    </td>
                    <td>
                        <%=GetGlobalResourceObject("CarInsurance", "CTPL")%>
                    </td>
                    <td>
                        <span class="lGrey f11">
                            <asp:Label runat="server" ID="lblCTPL" /></span>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="clear">
        </div>
    </div>
    <div runat="server" id="divLinks" visible="false">
        <span id="newbtn"><span class="newbutton">
            <asp:HyperLink ID="hplReRunQuote" Target="_blank" runat="server" Text="<%$Resources:CarInsurance,ReRunQuote%>" />
        </span>&nbsp;<span class="newbutton"><asp:HyperLink ID="hplNewQuote" Target="_blank"
            runat="server" Text="<%$Resources:CarInsurance, RunNewQuote%>" /></span></span><br />
    </div>
    <div class="toggle" id="divRenewalButtons" runat="server" visible="false">
        <div class="title opened" id="opened6">
            <img src="../images/icons/dark/list.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label runat="server" Text="<%$Resources:General, ApplicationFormSummary %>"
                    ID="Label3" /></h6>
        </div>
        <asp:GridView ID="grvSelectedApp" runat="server" AllowPaging="false" AutoGenerateColumns="False"
            CssClass="sTable" GridLines="None" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
            DataKeyNames="CECarId, RefCEUserID, ProviderCompanyID, QuoteRefNo">
            <Columns>
                <asp:BoundField DataField="QuoteRefNo" HeaderText="<%$Resources:CarInsurance,ReferenceNo%>"
                    SortExpression="QuoteRefNo" ItemStyle-Width="80px" />
                <asp:BoundField DataField="CustomerName" HeaderText="<%$Resources:CarInsurance,Name%>"
                    SortExpression="CustomerName" ItemStyle-Width="200px" />
                <asp:BoundField DataField="CarPlate" HeaderText="Car Plate" SortExpression="CarPlate"
                    ItemStyle-Width="120px" />
                <asp:BoundField DataField="PaymentStatusDESC" HeaderText="<%$Resources:General,PaymentStatus%>"
                    SortExpression="PaymentStatusDESC" ItemStyle-Width="100px" ItemStyle-Font-Bold="true"
                    ItemStyle-ForeColor="red" />
                <asp:BoundField DataField="SendToProviderDESC" HeaderText="<%$Resources:CarInsurance,SendToProvider%>"
                    SortExpression="SendToProviderDESC" ItemStyle-Width="100px" />
                <asp:BoundField DataField="PolicyIssueDesc" HeaderText="<%$Resources:CarInsurance,PolicyIssue%>"
                    SortExpression="PolicyIssueDesc" ItemStyle-Width="100px" />
                <asp:BoundField DataField="MailingDesc" HeaderText="<%$Resources:CarInsurance,Mailing%>"
                    SortExpression="MailingDesc" ItemStyle-Width="70px" />
                <asp:BoundField DataField="CompletedDesc" HeaderText="<%$Resources:CarInsurance,Completed%>"
                    SortExpression="CompletedDesc" ItemStyle-Width="80px" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="<%$Resources:General,DateTime%>"
                    SortExpression="ModifiedDate" ItemStyle-Width="50px" DataFormatString="{0:dd/MM/yyyy hh:mm tt}" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle BackColor="ActiveBorder" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="num">
            <asp:Button runat="server" ID="btnRenewQuote" Text="Renewal Quote" CssClass="blueB ml10"
                OnClick="btnRenewQuote_Click" />
            <asp:Label runat="server" ID="lblLastYearRefNo" Text="N/A" Visible="false" />
            <asp:Label runat="server" ID="lblRenewalQuoteMessage" Text="" Font-Bold="true" />
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divPremiumList" visible="false">
        <div class="title opened">
            <img src="../images/icons/dark/cart.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="Label8" runat="server" Text="<%$Resources:CarInsurance,NonGGPacakagesPremiumList%>" /></h6>
            <asp:Label runat="server" ID="lblCarMoreDetailID" Text="" Visible="false" />
            <asp:Label runat="server" ID="lblAppStatus" Text="" Visible="false" />
            <asp:Label runat="server" ID="lblAppStatusMessage" Text="" />
        </div>
        <asp:GridView ID="grvPremiumList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="2" EmptyDataText="There are no data records to display." CssClass="sTable"
            GridLines="None" DataSourceID="sqlDsPremiumList" DataKeyNames="ProviderCoverTypeId,CXBrokerPremiumId">
            <Columns>
                <asp:BoundField DataField="CXBrokerPremiumId" Visible="false" HeaderText="CXBrokerPremiumId"
                    SortExpression="CXBrokerPremiumId" />
                <asp:BoundField DataField="ProviderCoverTypeId" Visible="false" HeaderText="ProviderCoverTypeId"
                    SortExpression="ProviderCoverTypeId" />
                <asp:BoundField DataField="AgentName" HeaderText="<%$Resources:General,Broker%>"
                    SortExpression="AgentName" />
                <asp:ImageField DataAlternateTextField="CompanyName" DataImageUrlField="LogoUrl"
                    HeaderText="Logo">
                </asp:ImageField>
                <asp:BoundField DataField="CompanyName" HeaderText="<%$Resources:CarInsurance,CompanyName%>"
                    SortExpression="CompanyName" />
                <asp:BoundField DataField="Info1" HeaderText="<%$Resources:General,ReferenceNo%>"
                    SortExpression="Info1" ItemStyle-BackColor="ActiveBorder" ItemStyle-Font-Bold="true"
                    ItemStyle-ForeColor="Red" ItemStyle-Font-Size="Medium" />
                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="<%$Resources:CarInsurance,InsuranceType%>"
                    SortExpression="ProviderCoverTypeDesc" />
                <asp:BoundField DataField="Package" HeaderText="<%$Resources:General,PackageName%>"
                    SortExpression="Package" />
                <asp:BoundField DataField="WorkShopDesc" HeaderText="<%$Resources:CarInsurance,GarageType%>"
                    SortExpression="WorkShopDesc" />
                <asp:BoundField DataField="Premium" HeaderText="<%$Resources:General,PremiumAmount%>"
                    SortExpression="Premium" />
                <asp:BoundField DataField="DiscountPercentage" Visible="true" HeaderText="Discount (%)"
                    SortExpression="DiscountPercentage" />
                <asp:BoundField DataField="SelectedStatus" HeaderText="<%$Resources:CarInsurance,SelectStatus%>"
                    SortExpression="SelectedStatus" ItemStyle-Font-Bold="true" />
                <asp:BoundField DataField="ModifiedDate" DataFormatString="{0:dd/MMM/yyyy hh:mm:ss tt}"
                    HeaderText="<%$Resources:General,DateTime%>" SortExpression="ModifiedDate" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsPremiumList" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
            SelectCommand="sprocCXBrokerPremiumSelectItemList" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtCarId" Name="CECarId" DefaultValue="0" PropertyName="Text"
                    Type="Int64" />
                <asp:Parameter Name="ProductType" DefaultValue="CIN" DbType="String" />
                <asp:ControlParameter ControlID="lblLangOption" Name="LangOption" DefaultValue="1"
                    PropertyName="Text" Type="Int16" />
            </SelectParameters>
            
        </asp:SqlDataSource>
        <div class="clear">
        </div>
    </div>
    <div class="toggle" runat="server" id="divResult" visible="false">
        <div class="title opened">
            <img src="../images/icons/dark/cart.png" alt="" class="titleIcon" />
            <h6>
                <asp:Label ID="lblQuoteResultTitle" runat="server" Text="<%$Resources:CarInsurance,Quotes %>"
                    Font-Bold="true" />
            </h6>
        </div>
        <asp:GridView ID="gvCarResult" runat="server" AutoGenerateColumns="False" CellPadding="2"
            Width="100%" GridLines="None" CssClass="sTable" DataKeyNames="CITempResultId,ProviderCompanyId,BuyUrl"
            EmptyDataText="<div class='pad_10'><h2>No Matches Found!</h2><span class='font_12'><strong>Please take note that there are no matches found based on customer's details entered.</strong></span><div class='seperator'></div><div class='seperator'></div></div>"
            EmptyDataRowStyle-CssClass="" OnRowCreated="gvCarResult_RowCreated" OnRowCommand="gvCarResult_RowCommand"
            AllowSorting="false" OnSorting="gvCarResult_Sorting" OnRowDataBound="gvCarResult_RowDataBound">
            <Columns>
                <asp:BoundField DataField="CITempResultId" HeaderText="CITempResultId" Visible="false" />
                <asp:BoundField DataField="CXCoverTypeId" HeaderText="CoverTypeId" Visible="false" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" Visible="false" />
                <asp:TemplateField
                    HeaderText="<%$Resources:CarInsuranceResultPage,Insurer %>" SortExpression="CompanyName">
                    <ItemTemplate>
                        <div>
                            <asp:Image ID="imgCompanyLogo" runat="server" />
                        </div>
                        <div>
                            <asp:Label ID="lblPackageName" runat="server" Text="" />
                        </div>
                        <div>
                            <asp:HyperLink ID="hplWorkshopLink" runat="server" Text="<%$Resources:CarInsurance, GarageLink%>" />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <%--Company Name--%><asp:BoundField DataField="CompanyName" Visible="false" HeaderText="<%$Resources:CarInsuranceResultPage, Insurer%>"
                    SortExpression="CompanyName" />
                <%--Annual Premium--%><asp:BoundField DataField="TotalVMI" DataFormatString="{0:#,0.00}"
                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TotalVMI %>"
                    HeaderStyle-Width="90" SortExpression="TotalVMI" />
                <asp:BoundField DataField="AnnualPremium" Visible="false" />
                <%--CTPL--%><asp:TemplateField HeaderText="<%$Resources:CarInsuranceResultPage,CTPL %>"
                    HeaderStyle-Width="60" SortExpression="TotalCMI" Visible="false">
                    <ItemTemplate>
                        <div>
                            <asp:Image ID="imgCTPL" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                        </div>
                        <div>
                            <asp:Label ID="lblCTPLSymbol" runat="server" Text="" />
                            <asp:Label ID="lblCTPL" runat="server" Text="" />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-CssClass="green_item" HeaderStyle-CssClass="green_bottom"
                                    HeaderStyle-Width="100" HeaderText="<%$Resources:CarInsuranceResultPage,DEC %>"
                                    SortExpression="DEC">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Label ID="lblDECZero" runat="server" Text="Waived" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblDECSymbol" runat="server" Text="" />
                                            <asp:Label ID="lblDEC" runat="server" Text="" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                <asp:TemplateField ItemStyle-CssClass="green_item"
                                    HeaderStyle-CssClass="green_bottom" HeaderStyle-Width="100" HeaderText="<%$Resources:CarInsuranceResultPage,OwnDamageFireTheft %>"
                                    SortExpression="SumInsured">
                                    <ItemTemplate>
                                        <div>
                                            <asp:Image ID="imgSumInsured" ImageUrl="~/OLD/images/icons/X.gif" runat="server" />
                                        </div>
                                        <div>
                                            <asp:Label ID="lblSumInsuredSymbol" runat="server" Text="" />
                                            <asp:Label ID="lblSumInsured" runat="server" Text="" />
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                <%--Liability for Property Damage--%><asp:BoundField DataField="TPPD" ItemStyle-CssClass="blue_item"
                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPPD %>" SortExpression="TPPD" />
                <%--Liability for Bodily Injury/Death--%><asp:BoundField DataField="TPBIA" ItemStyle-CssClass="blue_item"
                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIA %>"
                    SortExpression="TPBIA" />
                <%--Bodily Injury/Death (per person)--%><asp:BoundField DataField="TPBIP" ItemStyle-CssClass="blue_item"
                    HeaderStyle-CssClass="blue_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,TPBIP %>"
                    SortExpression="TPBIP" />
                <%--Personal Accident (driver)--%><asp:BoundField DataField="PADriver" ItemStyle-CssClass="gold_item"
                    HeaderStyle-CssClass="gold_bottom" DataFormatString="{0:#,0}" HeaderStyle-Width="90"
                    HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,PADriver %>"
                    SortExpression="PADriver" />
                <%--Medical Expenses (per person)--%>
                <asp:BoundField DataField="MedicalExpense" ItemStyle-CssClass="gold_item" DataFormatString="{0:#,0}"
                    HeaderStyle-Width="80" HtmlEncode="false" HeaderStyle-CssClass="gold_bottom"
                    HeaderText="<%$Resources:CarInsuranceResultPage,MED %>" SortExpression="MedExp" />
                <%--Bail Bond (per accident)--%>
                <asp:BoundField DataField="BailBond" ItemStyle-CssClass="gold_item" HeaderStyle-CssClass="gold_bottom"
                    DataFormatString="{0:#,0}" HeaderStyle-Width="90" HtmlEncode="false" HeaderText="<%$Resources:CarInsuranceResultPage,BailBond %>"
                    SortExpression="BailBond" />
                <%--Button Area--%>
                <asp:TemplateField HeaderText="" HeaderStyle-CssClass="buydirect">
                    <ItemTemplate>
                        <div class="gridbtn5">
                            <asp:ImageButton ID="ibtMoreInfo" runat="server" Visible="false" ImageUrl="<%$Resources:ImageResource,MoreInfoButtonImageUrl%>" />
                            <asp:ImageButton ID="ibtBuyNow" Visible="false" ImageUrl="<%$Resources:ImageResource,BuyOnlineButtonImageUrl%>"
                                runat="server" CommandName="BuyNow" OnClientClick="javascript:return confirm('Are you sure to proceed BUY ONLINE?');" /><%--OnClientClick ="aspnetForm.target ='_blank';"--%><br />
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
    <div style="display: none">
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCXCRMId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCustomerId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtOldCustomerId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarPolicyId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCarResultId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtServerPath" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId" />
        <asp:TextBox runat="server" ReadOnly="true" ID="txtCallMeId" />
        <asp:TextBox runat="server" ID="txtCallStatusId" Text="0"></asp:TextBox>
        <asp:TextBox runat="server" ID="txtContactNo" Text="0"></asp:TextBox>
        <asp:TextBox runat="server" ID="txtSearchTextHidden" Visible="false" />
        <asp:TextBox runat="server" ID="txtSearchTypeHidden" Visible="false" />
        <asp:TextBox runat="server" ID="txtSearchCarIDHidden" Visible="false" />
    </div>
    <div runat="server" id="divBuyNowStatus" visible="false">
        <br />
        <asp:Label ID="lblBuyNowStatus" runat="server" Text="" Font-Size="Large" Font-Bold="true" />
        <br />
        <asp:Button ID="btnBuyNowRefresh" Text="Refresh" runat="server" OnClick="btnBuyNowRefresh_Click" />
        <br />
    </div>

    <script type="text/javascript">

        function ResetConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('callstatus')) {
                _retVal = confirm('Confirm to Reset?');
            }
            
            return _retVal;
        }

    </script>

</asp:Content>
